/*
 * =====================================================================================
 *
 *       Filename:  test.cpp
 *
 *    Description:  Test orientation binning
 *
 *        Version:  1.0
 *        Created:  23/07/12 15:10:15
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Moos Hueting (mh), mooshueting@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#include <iostream>
#include <cv.h>
#include <highgui.h>
#include "gradOrient.h"

using namespace cv;
using namespace std;

int main(int argc, char* argv[]) {
    Mat im = imread(argv[1], CV_LOAD_IMAGE_GRAYSCALE);
    threshold(im, im, 100, 255, THRESH_BINARY);

    cout << gradOrientation(im, atoi(argv[2])) << endl;
}
